package com.qf.user.controller;

import com.qf.common.core.utils.R;
import com.qf.user.service.UserService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zdl
 * @date 2025/3/25
 */
@RestController
@RequestMapping("/user")
public class SignController {
    @Resource
    private UserService userService;

    /**
     * 签到
     * @return
     */

    @PostMapping("/sign")
    public R<?> sign(){
        userService.sign();
        return R.ok("签到成功");
    }
}
